<template>
    <div class="box">
        <header class="header">
          <ul>
            <li @click="back"><i class="iconfont icon-jiantouarrowhead7"></i></li>
            <li><h5>我的收藏</h5></li>
            <li></li>
          </ul>
        </header>
        <div class="content">
          <div class="photolist">
            <ul>
              <li>
                <img src="@/../static/xiao0.jpg" alt="">
                <div class="detail">
                  <p>小坚果大能量</p>
                  <span>2018.09.20</span>
                  <i class="iconfont icon-xin"></i>
                </div>
              </li>
              <li>
                <img src="@/../static/xiao1.jpg" alt="">
                <div class="detail">
                  <p>小坚果大能量</p>
                  <span>2018.09.20</span>
                  <i class="iconfont icon-xin"></i>
                </div>
              </li>
              <li>
                <img src="@/../static/xiao3.jpg" alt="">
                <div class="detail">
                  <p>小坚果大能量</p>
                  <span>2018.09.20</span>
                  <i class="iconfont icon-xin"></i>
                </div>
              </li>
              <li>
                <img src="@/../static/xiao3.jpg" alt="">
                <div class="detail">
                  <p>小坚果大能量</p>
                  <span>2018.09.20</span>
                  <i class="iconfont icon-xin"></i>
                </div>
              </li>
            </ul>
          </div>
        </div>
    </div>
</template>

<script>
export default {
  methods: {
    back () {
      this.$router.go(-1)
    }
  }
}
</script>

<style lang="scss" scoped>
@import '@/lib/reset.scss';
.header {
  @include rect(100%, 0.4rem);
  @include background-color(#DFDFDF);
  ul {
    @include rect (95%, 100%);
    // background:red;
    margin:0 auto;
    @include flexbox();
    @include justify-content(space-between);
    @include align-items();
    li {
      i{
        @include font-size(0.15rem);
        @include text-color(#101010);
      }
      h5 {
        @include font-size(0.15rem);
        @include text-color(#101010);
        @include font-weight(100);
      }
    }
  }
}
.photolist {
  @include rect(90%, auto);
  margin:0.2rem 5%;
  li {
    @include rect(45%, 1.8rem);
    border-radius: 0.1rem;
    position: relative;
    float: left;
    margin-bottom:0.1rem;
    img {
      @include rect(100%, 100%);
      border-radius: 0.1rem;
    }
    .detail {
      @include rect(100%, 40%);
      position: absolute;
      bottom:0;
      border-top:1px solid #ccc;
    }
    p {
      @include rect(80%, 0.3rem);
      line-height: 0.3rem;
      color:#333;
      font-size: 0.12rem;
    }
    span {
      @include rect(40%, 0.2rem);
      line-height: 0.2rem;
      color:#333;
      font-size: 0.1rem;
    }
    i {
      position: absolute;
      @include rect(0.2rem, 0.2rem);
      bottom:0.05rem;
      right:0.05rem;
      line-height: 0.2rem;
      color:#333;
    }
  }
  li:nth-of-type(odd){margin-right:10%}
}
</style>
